/*
 * @description: 
 * @Date: 2022-11-24 19:18:43
 * @example: 
 * @params: 
 */
import server  from "./server";


// Verification code
export function Verificationcode () {
    return server({
        method:'GET',
        url:'/authCode',
    })
}

//login 
export function LoginSystem (params) {
    return server({
        method:"POST",
        url:"/login",
        params:params
    })
}
//sign up
export function SignupAPI (params) {
    return server({
        method:"POST",
        url:"/register",
        params:params
    })
}
// 邮箱验证码请求
export function Sendemails (params) {
    return server({
        method:"POST",
        url:"/Emails",
        params
    })
}
// ResetPassword 
export function ResetPassword (params){
    return server({
        method:"POST",
        url:"/resetpass",
        params
    })
}
// Checkeamil
export function CheckUsers (params){
    return server({
        method:"POST",
        url:"/checkemail",
        params
    })
}
export function refrshAvatar(params){
    return server({
        method:"POST",
        url:"/refrshAvatar",
        params
    })
}
export function refrshNickname(params){
    return server({
        method:"POST",
        url:"/refrshNickname",
        params,
        // headers:{'Authorization':window.sessionStorage.getItem('token')}
    })
}
export function DeleAvatar (params){
    return server({
        method:"POST",
        url:"/delAvatar",
        params
    })
}
export function RefrshUserInfo(params){
    return server({
        method:"POST",
        url:"/UserInfo",
        params
    })
}